package com.lagou.service.impl;

import com.lagou.service.HomeWork;

import java.util.Random;

public class HomeWorkImpl implements HomeWork {
    Random random = new Random();
    public String methodA(String msg) {

        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "methodA";
    }

    public String methodB(String msg) {
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "methodB";
    }

    public String methodC(String msg) {
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "methodC";
    }
}
